#ifndef PROFILER_H
#define PROFILER_H

#include <QtCore>

class Profiler
{
public:
    Profiler(const QString& name) : name(name) { time.start(); }
    ~Profiler() { qDebug() << QString("%1 %2 msec").arg(name).arg(time.elapsed()); }

private:
    QString name;
    QTime time;

};

#endif // PROFILER_H
